package ooday03;

public class InterfaceDemo {
    public static void main(String[] args) {





    }
}
//演示接口的语法
interface Inter{
    public abstract void show();
    void test();

}
//演示接口的实现
interface Inter1{
    void show();
    void test();
}
class AOO implements Inter1{
    public void show(){}//重写接口中的方法时，必须加public
    public void test(){}

}
 interface Inter2{
    void show();
}
interface Inter3{
    void test();
}
abstract class BOO{
    abstract void say();
}
class COO extends BOO implements Inter2,Inter3{
    public void show(){}
    public void test(){}
    void say(){}//有默认的public
}
//演示接口继承接口
interface Inter4{
    void show();
}
interface Inter5{
    void test();
}
class DOO extends COO implements Inter4,Inter5{
    public void show(){}
    public void test(){}
}








